package com.agileboot.infrastructure.user.app;

import com.agileboot.infrastructure.user.base.BaseAppLoginUser;
import com.agileboot.infrastructure.user.base.BaseLoginUser;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 登录用户身份权限
 *
 * @author valarchie
 */
@Data
@NoArgsConstructor
public class AppLoginUser extends BaseAppLoginUser {

    private static final long serialVersionUID = 1L;

    private boolean isVip;

    /**
     * 当超过这个时间 则触发刷新缓存时间
     */
    private Long autoRefreshCacheTime;


    public AppLoginUser(String userId,String username, String password) {
        this.userId= userId;
        this.username = username;
        this.password = password;
    }


}
